package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;

@Entity
@Table(name = "controldata_tablename", schema = "sor", catalog = "qmsprd")
public class ControldataTablename {
    private String shopId;
    private String dcType;
    private String eqptId;
    private String tabname;
    private String validFlg;

    @Id
    @Column(name = "shop_id")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "dc_type")
    public String getDcType() {
        return dcType;
    }

    public void setDcType(String dcType) {
        this.dcType = dcType;
    }

    @Basic
    @Column(name = "eqpt_id")
    public String getEqptId() {
        return eqptId;
    }

    public void setEqptId(String eqptId) {
        this.eqptId = eqptId;
    }

    @Basic
    @Column(name = "tabname")
    public String getTabname() {
        return tabname;
    }

    public void setTabname(String tabname) {
        this.tabname = tabname;
    }

    @Basic
    @Column(name = "valid_flg")
    public String getValidFlg() {
        return validFlg;
    }

    public void setValidFlg(String validFlg) {
        this.validFlg = validFlg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ControldataTablename that = (ControldataTablename) o;

        if (shopId != null ? !shopId.equals(that.shopId) : that.shopId != null) return false;
        if (dcType != null ? !dcType.equals(that.dcType) : that.dcType != null) return false;
        if (eqptId != null ? !eqptId.equals(that.eqptId) : that.eqptId != null) return false;
        if (tabname != null ? !tabname.equals(that.tabname) : that.tabname != null) return false;
        if (validFlg != null ? !validFlg.equals(that.validFlg) : that.validFlg != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = shopId != null ? shopId.hashCode() : 0;
        result = 31 * result + (dcType != null ? dcType.hashCode() : 0);
        result = 31 * result + (eqptId != null ? eqptId.hashCode() : 0);
        result = 31 * result + (tabname != null ? tabname.hashCode() : 0);
        result = 31 * result + (validFlg != null ? validFlg.hashCode() : 0);
        return result;
    }
}
